package com.github.chain.admin.server.dao;

import com.github.chain.admin.common.domain.Menu;
import com.github.chain.admin.common.domain.Role;
import com.github.chain.admin.common.request.MenuRequest;
import com.github.framework.core.Result;
import org.apache.ibatis.annotations.Param;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

/**
 * @author AIQ
 * @date 2023/5/11
 * @project er-trader
 */
public interface MenuDao {

    /**
     *
     * @param menuIds
     * @return
     */
    List<Menu> findMenuByMenuIds(@Param("menuIds")List<Long> menuIds);

    List<Menu> findMenuList(Menu menu);

    List<Menu> findMenuListSortByPid(Long pid);

    Menu findMenuById(Long id);

    Integer updateSelective(Menu updateMenu);

    Integer insertSelective(Menu menu);

    Integer deleteMenuByMenuId(Long id);

}
